package cn.itsource.pet.domain;

import java.io.Serializable;
import java.util.Date;

import cn.itsource.basic.domain.BaseDomain;
import lombok.Data;

import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 
 * @TableName t_pet
 */
@Data
@Table(name = "t_pet")
public class Pet extends BaseDomain {

    /**
     * 领养人
     */
    private Long adoptId;

    /**
     * 名称
     */
    private String name;

    /**
     * 图片
     */
    private String resources;

    /**
     * 销售
     */
    private Double saleprice;

    /**
     * 销售时间结束
     */
    private Date offsaletime;

    /**
     * 销售时间开始
     */
    private Date onsaletime;

    /**
     * 状态：0下架 1上架
     */
    private Long state = 0L;

    /**
     * 成本价
     */
    private Double price;

    /**
     * 宠物年龄
     */
    private String age;

    /**
     * 创建时间
     */
    private Date createTime = new Date();

    /**
     * 类型id
     */
    private Long typeId;

    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shopId;

    /**
     * 如果被领养为领养用户id
     */
    private Long userId;

    /**
     * 成本价
     */
    private Double costprice;

    private String intro;

    private String notice;

    /**
     * 宠物来源
     */
    private String resourceType;

    @Transient
    private String petTypeName;

    @Transient
    private String shopName;
}